﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Game_Engine
{
    public static class Time
    {
        public static float ElapsedGameTime
        {
            get;
            set;
        }

        public static TimeSpan TotalGameTime
        {
            get;
            private set;
        }

        public static void Initialize()
        {
            ElapsedGameTime = 0;
            TotalGameTime = new TimeSpan(0, 0, 0);
        }
        
        public static void Update(GameTime gameTime)
        {
            ElapsedGameTime = (float)gameTime.ElapsedGameTime.TotalSeconds;
            TotalGameTime = gameTime.TotalGameTime;
        }
    }
}
